﻿using Hopscotch.Common.Contracts.EnqService;
using Microsoft.AspNet.SignalR.Client.Hubs;

namespace Hopscotch.Presentation.Communication.HubClients
{
    public class HubClientBase : IHubClient
    {
        private IEnqConnection enqConnection;

        public HubClientBase(IEnqConnection enqConnection)
        {
            this.enqConnection = enqConnection;
        }

        public Hopscotch.Common.Contracts.EnqService.ConnectionState ConnectionState
        {
            get { return enqConnection.ConnectionState; }
        }
    }
}
